package com.demo.common.exception;

import com.demo.common.base.BaseExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 错误枚举
 * @author 153854
 */
@AllArgsConstructor
@Getter
public enum CommonErrorEnum implements BaseExceptionEnum {
    ERROR(500, "服务器内部错误", true),

    FILE_UPLOAD_FAIL(510000, "文件上传失败", true),
    NO_API_KEY(510001, "没有此key", true),

    ;

    private final Integer code;
    private final String desc;
    private final Boolean printStackTraceFlag;
}
